# coding: utf-8
# author: ZhenbPeng
#   date: 2017/10/19 14:15
import sys
from proxy.pool_control import proxy_start
from work.worker import work_start

ptype = None
if len(sys.argv) > 1:
    ptype = sys.argv[1]
else:
    print("please enter ptype[proxy, work]")
    exit(0)

if ptype:
    if ptype == "proxy":
        proxy_start()

    if ptype == "work":
        work_start()


